package jpademo.service;

import java.util.List;

import jpademo.model.Student;
import jpademo.repository.StudentRepository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentService {

	
    @Autowired
    private StudentRepository stuRepository;
    
    public List<Student> findByName(String name)
    {
        return stuRepository.findByName(name);
    }
    
    public List<Student> findByNameAndScore(String name,float score)
    {
        return stuRepository.findByNameAndScore(name, score);
    }
}




    

   
